package com.etalk.crm.dao;

import com.etalk.crm.pojo.LessonJoinVoidReason;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: James
 * @Date: 2019/1/15 14:40
 * @Description:
 */
@Mapper
public interface LessonJoinVoidReasonMapper {

    /*
     * @Author James
     * @Description 删除原来存储的VoidReason
     * @Date 14:43 2019/1/15
     * @Param
     * @return
     **/
    int deleteByLessonId(int lessonId);

    /**
     * 插入  voidSeason  原因
     * @param list
     * @return
     */
    int addVoidSeason(@Param("list")List<LessonJoinVoidReason> list,@Param("addUserName")String addUserName,@Param("lessonId")int lessonId);



    /*
     * @Author James
     * @Description addVoidReason
     * @Date 15:07 2019/1/15
     * @Param
     * @return
     **/
    int addVoidReason(LessonJoinVoidReason record);

     /*
     * @Author James
     * @Description 根据lessonId 查询 VoidReason
     * @Date 15:07 2019/1/15
     * @Param
     * @return
     **/
    int selectVoidReasonByLessonId(@Param("lessonId")int lessonId);

    /**
     * 根据lessonId 更新 VoidReason
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(LessonJoinVoidReason record);
}
